@import '../../res/theme/xxhz.scss';



.commonLimitedRoot {
  display: flex;
  justify-content: space-between;
  min-height: 100vh;
  flex-direction: column;
}

.limitedRoot {
  width: 100%;

  .process-wrapper {
    width: 100%;
    border-radius: 20px;
    vertical-align: middle;

    .progress-grabbed {
      position: absolute;
      left: 20px;
      height: 24px;
      line-height: 24px;
      font-size: 20px;
      color: #fdf5f2;
      top: 0;
    }

    .process-wrapper__outer-inner {
      position: relative;
    }

    .process-wrapper__outer-inner, .process-wrapper__outer-inner-background {
      border-radius: 64px;
    }

    .process-wrapper__outer-inner-background {
      position: relative;
      height: 24px;
      -webkit-transition: all .3s cubic-bezier(.455, .03, .515, .955);
      transition: all .3s cubic-bezier(.455, .03, .515, .955);
      overflow: hidden;
    }
  }

  .head-bg {
    width: 100%;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 9;

    .search-bar {
      width: 92%;
      bottom: 16px;
      left: 4%;
      position: absolute;
    }
  }

  .label-nav {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    background-color: #fff !important;

    .nav-box {
      flex: 1;
      display: flex;
      transition: all 0.4s ease 0s;
      overflow: hidden;
      max-height: 60px;

      .item {
        flex-shrink: 0;
        font-size: 26px;
        color: #333;
        padding: 10px 20px;
        box-sizing: border-box;
        position: relative;
        height: 60px;
      }

      .subcategory {
        display: flex;
        flex-grow: 1;
        flex-wrap: wrap;
      }

      .indicator {
        display: flex;
        align-items: center;

        .close {
          transition: all 0.4s ease 0s;
          transform: rotateZ(180deg);
        }

        .open {
          transform: rotateZ(0deg);
        }
      }

      .active {
        color: #000;
        font-weight: bold;

        .line-bottom {
          height: 5PX;
          background: #000;
          width: 86%;
          z-index: 5;
          border-radius: 16px;
          margin: 4px auto;
          transform: scale(.8);
        }
      }
    }

    .nav-box-open {
      transition: all 0.4s ease 0s;
      overflow: hidden;
      max-height: fit-content;
    }

    .notice {
      width: 130px;
      color: $color-brand;
      font-size: 26px;
      flex-shrink: 0;
      text-align: center;
      display: flex;
      align-items: center;
      white-space: nowrap;

      &::after {
        content: "\e913";
        display: block;
      }
    }
  }

  .type-box {
    background-color: white;
    height: 100px;
    line-height: 100px;
    display: flex;
    border-bottom: solid 1Px #efefef;
    position: relative;
    padding: 0 20px;

    .type-item {
      width: 50%;
      text-align: center;
      color: $color-font-secondry;
      line-height: 100px;
      font-size: 32px;
    }

    .active-bar {
      width: 12vw;
      background-color: $color-brand;
      position: absolute;
      height: 2Px;
      bottom: 0;
      transform: translateX(17vw);
      transition: all 0.2s ease 0s;
    }

    .two {
      transform: translateX(64vw);
      // transition: all 0.2s ease 0s;
    }

    .three {
      transform: translateX(73vw);
      // transition: all 0.2s ease 0s;
    }

    .selected {
      color: $color-brand;
    }
  }

  .no-product {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 200px;

    .icon {
      padding-bottom: 80px;
    }

    .tips {
      font-size: 40px;
      padding-bottom: 30px;
    }

    .text {
      font-size: 26px;
      color: #999;
    }

    .link {
      display: flex;
      justify-content: center;
    }
  }

  .content {
    padding: 20px;

    .name {
      background: #fff;
      font-size: 32px;
      padding-bottom: 4px;
      box-sizing: border-box;
      display: -webkit-box;
      /*! autoprefixer: ignore next */
      -webkit-box-orient: vertical;
      /* autoprefixer: on */
      -webkit-line-clamp: 2;
      display: flex;
      align-items: flex-start;

      .label {
        margin-right: 6px;
        margin-top: 8px;
        white-space: nowrap;
        border-radius: 26px;
        color: #ff601b;
        padding: 6px 10px;
        font-size: 18px;
        text-align: center;
        border: 1Px solid #ff601b;
      }

      .goods-name {
        padding-right: 1px;
        text-overflow: ellipsis;
        display: -webkit-box;
        /*! autoprefixer: ignore next */
        -webkit-box-orient: vertical;
        /* autoprefixer: on */
        -webkit-line-clamp: 2;
        overflow: hidden;
      }

      .coupon-text {
        white-space: nowrap;
        font-size: 20px;
        color: #fff;
        text-align: center;
        background: #ed6c47;
        position: relative;
        top: 8px;
        border-radius: 6px;
        margin-right: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
    }

    .good-box {
      padding-bottom: 30px;

      .wrap {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
      }

      .swiper-box {
        width: 100%;
        position: relative;

        .swiper {
          width: 100%;
          height: 420px;
        }

        .img {
          width: 100%;
          height: 420px;
          display: block;
        }

        .name {
          position: absolute;
          bottom: 0;
          font-size: 24px;
          background-image: linear-gradient(to top, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
          padding: 30px 10px 10px;
          width: 100%;
          color: white;
          box-sizing: border-box;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }

        .indicator-box {
          position: absolute;
          top: 24px;
          right: 24px;
          display: flex;
          justify-content: flex-end;

          .indicator-item {
            width: 12px;
            height: 12px;
            border-radius: 6px;
            background-color: white;
            margin-right: 8px;
            transition: width 0.2s ease 0s;
          }

          .active {
            width: 40px;
            transition: width 0.2s ease 0s;
          }
        }
      }

      .info {
        background-color: #fff;
        padding: 18px 20px 30px;

        .labels {
          display: flex;
          align-items: center;
          flex-wrap: wrap;
          margin-bottom: 12px;

          .label {
            display: flex;
            align-items: center;
            justify-content: center;
            white-space: nowrap;
            margin-right: 10px;
            border-radius: 26px;
            color: #ff601b;
            padding: 2px 10px 4px;
            font-size: 20px;
            text-align: center;
            border: 1Px solid #ff601b;
          }

          .label:last-child {
            margin-right: 0;
          }
        }

        .name {
          margin: 10px 0;
          font-size: 30px;
          font-weight: bold;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
        }

        .subTitle {
          overflow: hidden;
          text-overflow: ellipsis;
          margin-bottom: 14px;
          /*! autoprefixer: ignore next */
          -webkit-box-orient: vertical;
          /* autoprefixer: on */
          -webkit-line-clamp: 2;
          display: -webkit-box;
          font-size: 24px !important;
          color: #676768 !important;
        }
      }

      .info-box {
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        background-color: white;
        margin-top: 36px;

        .left {
          width: 50%;
          overflow: hidden;
          display: flex;
          flex-direction: column;

          .discount {
            min-width: 50px;
            letter-spacing: 1px;
            color: #fff;
            background-color: #ff2402;
            border-radius: 26px 26px 26px 0;
            text-align: center;
            margin-left: 6px;
            padding: 4px 10px;
            font-size: 18px;
            white-space: nowrap;
          }

          .price {
            font-size: 22px;
            color: #262e2d;
            display: flex;
            align-items: center;

            .mark {
              font-size: 22px;
              font-weight: bold;
              font-family: Avenir;
              color: $color-price;
            }

            .main {
              font-size: 36px;
              font-weight: bold;
              padding-left: 2px !important;
              line-height: 56px;
              height: 35px;
            }

            .market-price {
              font-family: Avenir;
              text-decoration: line-through;
              color: #999;
              line-height: 50px;
              height: 35px;
            }

            .margin-left {
              margin-left: 6px;
            }
          }

          .process {
            line-height: 1;

            .text {
              font-size: 16px;
              color: #888;
              display: block;
            }
          }
        }

        .right {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: space-between;

          .share-earn {
            width: 200px;
            height: 68px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: url("https://resource.ivcheng.com/upload/images/20210824/1629767380064_99.png") no-repeat;
            background-size: cover;

            .share-left {
              font-weight: bold;
              margin-top: 8px;
              max-width: 50%;
              font-size: 20px;
              color: #332215;
            }

            .price {
              text-align: right;
              white-space: nowrap;
              min-width: 50%;
              color: #fff;
              font-size: 20px;

              .true-price-share {
                color: #fff;
                font-size: 35px;
                font-weight: 600;
              }
            }
          }

          .snapped-up {
            width: 160px;
            padding: 8Px 4Px;
            display: flex;
            font-weight: bold;
            align-items: center;
            justify-content: center;
            border-radius: 32px;
            text-align: center;
            color: #000;
            background: #ffdd09;
            font-size: 22px;
          }

          .time-tips {
            font-size: 22px;
            text-align: center;
          }
        }
      }
    }

    .good-item {
      width: 100%;
      // box-sizing: border-box;
      // padding: 0 20px 20px;
      padding-bottom: 30px;

      .wrap {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        background-color: white;
        height: 200px;
        display: flex;
        box-sizing: border-box;
        padding: 20px;

        .cover {
          width: 254px;
          height: 160px;

          .img {
            width: 254px;
            height: 160px;
          }
        }

        .info-box {
          width: calc(100% - 254px);
          padding-left: 20px;
          box-sizing: border-box;

          .title {
            font-size: 28px;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
          }

          .progress {
            width: 70%;
            height: 32px;
          }

          .price-box {
            font-size: 18px;
            color: #262e2d;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px 20px 6px 0;
            box-sizing: border-box;

            .symbol {
              font-size: 20px;
              color: $color-price;
            }

            .number {
              font-size: 36px;
              color: $color-price;
              padding: 0 10px;
            }

            .market-price {
              text-decoration: line-through;
            }

            .btn {
              width: 110px;
              height: 45px;
              border-radius: 23px;
              background-image: linear-gradient(to right, #e7874f, #ea7448);
              color: white;
              line-height: 45px;
              font-size: 20px;
              text-align: center;
            }

            .disabled {
              background: #eca88e;
            }

            .end {
              background-color: #cfcfcf;
              background-image: none;
            }
          }
        }
      }
    }
  }
}
